class StoreStaffDiscipline < StoreStaffEvent
  #惩戒
  scope :by_month, ->(month) { where("occur_on >= ? AND occur_on <= ?", month.beginning_of_month, month.end_of_month) }

  DISCIPLINE_SORT = EventType::TYPES_ARRAY[:StoreStaffDiscipline].invert
  SORT_TYPE = EventType::TYPES_ARRAY[:StoreStaffDiscipline]

  def sort_name
    SORT_TYPE[sort]
  end
end
